package Code.DataType;

public class demo1 {
    public static void main(String[] args) {
        //byte
        byte b = 10;
        System.out.println(b);
        //short
        short s = 20;
        System.out.println(s);
        //int
        int i = 30;
        System.out.println(i);
        //long
        //定义long类型的变量，需要加上l或者L的后缀
        long l =99999999999999999L;
        System.out.println(l);

        //float
        //定义float类型的变量，需要加上f或者F的后缀
        float f = 10.1F;
        System.out.println(f);
        //double
        double d = 20.2;
        System.out.println(d);

        //char
        char c = '王';
        System.out.println(c);

        //boolean
        //true false
        boolean o = true;
        System.out.println(o);


    }
}
